<template>
	<view>
		<view class="c-box-nobg fl jcc fw">
			{{detail.title}}
		</view>
		<view class="c-box-nobg fl jsp fs26">
			<text>{{detail.author}}</text>
			<text>{{detail.createTime}}</text>
		</view>
		<view class="c-box-nobg fs26">
			<u-parse :content="detail.content"></u-parse>
		</view>
	</view>
</template>

<script setup>
	import { onLoad} from '@dcloudio/uni-app'
import { ref } from "vue"
import { getNrDetailAPI } from '../../../api/youthStation'
	const id = ref()
	const detail = ref([])
	const getDetail= async()=>{
		const res =await getNrDetailAPI(id.value)
		detail.value =res.data
		console.log(res);
	}
	onLoad((options)=>{
		id.value =options.id
		getDetail()
	})
</script>

<style>

</style>
